﻿@model IEnumerable<SelectListItem>
<div class="editor-label">
    Speciality
</div>
@Html.DropDownList("Spec", Model)

<div id="divGroup"></div>

<script>
    (function () {
        $("#Spec").change(function () {
            $("#divGroup").load("/User/RegisterStudent", this[this.selectedIndex].value);
        });
    })();

    $(document).ready(function () {
        $("#Spec").change();
    })
</script>
